package com.xrz.sxm.aj.utils;

import android.content.Context;
import android.content.Intent;

import com.xrz.sxm.aj.activity.Activity_Loading;


public class ToolLoading {

	public static void ShowLoading(Context context) {
		Intent loadingIntent = new Intent();
		loadingIntent.setClass(context, Activity_Loading.class);
		loadingIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		loadingIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		Activity_Loading.bShow = true;
		context.startActivity(loadingIntent);
	}
	
	
	public static void closeLoading(Context context)
	{
		Activity_Loading.bShow = false;		
	}

}
